package com.dl.redis.entity;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author DL
 * @create 2023-09-14 16:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @NotBlank(message = "username不能为空")
    private String username;

    @NotBlank(message = "password不能为空")
    private String password;

    private String email;

    @Size(min = 18, max = 100, message = "age范围必须在18~100之间")
    private String age;

}
